package top.kaoshanji.r2ch07f;

/**
 * 代码清单-r2ch07f-254页a：代理Waiter所有的方法调用
 * @author kaoshanji
 * ^_^
 * create time 2025/5/8 10:42
 */
public class WaiterDelegate {

    private Waiter waiter;

    public void service(String clientName) {
        waiter.greetTo(clientName);
        waiter.serveTo(clientName);
    }

    public void setWaiter(Waiter waiter) {
        this.waiter = waiter;
    }

}
